<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
$nums=118;
$sqlnumeid=74;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='".$sqlnumeid."' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<script Language="JavaScript"> 
function CheckForm()
{
   if(document.save.bookumber.value=="")
   { alert("图书编号不能为空！");
     document.save.bookumber.focus();
     return (false);
   }
   if(document.save.bookname.value=="")
   { alert("图书名称不能为空！");
     document.save.bookname.focus();
     return (false);
   }
   if(document.save.author.value=="")
   { alert("作者不能为空！");
     document.save.author.focus();
     return (false);
   }
   if(document.save.appendix.value=="")
   { alert("存放地点不能为空！");
     document.save.appendix.focus();
     return (false);
   }
   if(document.save.booknum.value=="")
   { alert("图书数量不能为空！");
     document.save.booknum.focus();
     return (false);
   }
   if(document.save.content.value=="")
   { alert("内容不能为空！");
     document.save.content.focus();
     return (false);
   }
   
   return true;
}
function sendForm()
{
   if(CheckForm())
      document.save.submit();
}
</script>
<form name="save" method="post" action="?ac=add&do=save&fileurl=book">
	<input type="hidden" name="savetype" value="add" />
<table class="TableTop" width="90%">
   <tr>
      <td class="left"></td>
      <td class="center">基本信息</td>
      <td class="right"></td>
   </tr>
</table>
 <table class="TableBlock no-top-border" width="90%">
    <tr>
      <td nowrap class="TableData" width="15%"> 图书类目：</td>
      <td class="TableData">
        <select class="SelectStyle" name="booktype">
		<?php GET_FILE_PUBLIC_LIST()?>
		</select>	</td>
    </tr>
    <tr>
      <td nowrap class="TableData"> 图书编号：<? get_user_add_help()?></td>
      <td class="TableData">
<input name="bookumber" type="text" class="BigInput" id="bookumber" style="width: 200px;" maxlength="100" value="<?=get_date('Y',PHP_TIME).get_date('m',PHP_TIME).get_date('d',PHP_TIME).get_date('H',PHP_TIME).get_date('i',PHP_TIME).get_date('s',PHP_TIME)?>" />      </td>
    </tr>
	<tr>
      <td nowrap class="TableData"> 图书名称：<? get_user_add_help()?></td>
      <td class="TableData">
<input name="bookname" type="text" class="BigInput" id="bookname" style="width: 300px;" maxlength="100" />      </td>
    </tr>
	<tr>
      <td nowrap class="TableData"> 作者：<? get_user_add_help()?></td>
      <td class="TableData">
<input name="author" type="text" class="BigInput" id="author" style="width: 100px;" maxlength="100" /></td>
    </tr>
	<tr>
      <td nowrap class="TableData"> 出版社：</td>
      <td class="TableData">
<input name="publishing" type="text" class="BigInput" id="publishing" style="width: 300px;"  maxlength="100" />      </td>
    </tr>
	<tr>
      <td nowrap class="TableData"> 存放地点：<? get_user_add_help()?></td>
      <td class="TableData">
<input name="appendix" type="text" class="BigInput" id="appendix" size="40" style="width: 350px;" />      </td>
    </tr>
	<tr>
      <td nowrap class="TableData"> 图书数量：<? get_user_add_help()?></td>
      <td class="TableData">
<input name="booknum" type="text" class="BigInput" id="booknum" style="width: 80px;" onKeyUp="value=value.replace(/[^0-9]/g,'');" value="1" size="40" /> 
填写数字，该图书的数里  </td>
    </tr>
	
	
	
	
	
	
	<tr>
      <td nowrap class="TableHeader" colspan="2"><b>&nbsp;正文</b></td>
    </tr>
	
	</table>
<table  width="90%" style="border-left:#CCCCCC solid 1px;border-right:#CCCCCC solid 1px;border-bottom:#CCCCCC solid 1px;">
    <tr>
      <td width="15%"  style="border-right:#CCCCCC solid 1px;">&nbsp;内容：<? get_user_add_help()?></td>
      <td width="85%" style="padding-top:10px; padding-bottom:10px; padding-left:3px;"><script charset="utf-8" src="eweb/kindeditor.js"></script>
<script>
        KE.show({
                id : 'content'
        });
</script>
		<textarea name="content" cols="70" rows="12" class="input" style="width:600px;height:300px;"></textarea>	 
      </td>
    </tr>
</table>
  <table class="TableBlock no-top-border" width="90%"> 
   
 
    <tr align="center" class="TableControl">
      <td colspan="2" nowrap height="35">

		<input type="button" name="Submit" value="保存信息" class="BigButton" onclick="sendForm();">      </td>
    </tr>
  </table>
</form>
</div>
</div>
 
</body>
</html>
